/**
 * 
 */
package com.wsj.web.subclass.object;

import java.util.List;

import com.wsj.web.vo.homeSite.HomeSiteNews;
import com.wsj.web.vo.homeSite.HomeSiteNewsClass;

/**
 * @author fengbin  createTime:2009-7-14
 * 资讯详情对象
 */
@SuppressWarnings("serial")
public class HomeSiteNewsDetailBean extends HomeSiteNews {
	

	/***导航***/
	private List<HomeSiteNewsClass> navList;
	
	/****相关新闻*****/
	private List<HomeSiteNews> interrelatedHomeSiteNewsList;
	
	/*****推荐新闻**********/
	private List<HomeSiteNews>  commendHomeSiteNewsList;
	
	/*****关键字列表************/
	private List<String[]> allKeyWords;
	
	
	public List<String[]> getAllKeyWords() {
		return allKeyWords;
	}


	public void setAllKeyWords(List<String[]> allKeyWords) {
		this.allKeyWords = allKeyWords;
	}


	/*******
	 * 格式化后的发布时间
	 */
	public String getFormatCreateTime(){
		
		String retTime="";
		 if(this.getCreateDatetime()!=null){
			 java.text.DateFormat df = new java.text.SimpleDateFormat("yyyy-MM-dd");
			 retTime = df.format(this.getCreateDatetime());
		 }
		
		 return retTime;
	}
	
	
	/*****************
	 * 获取关键字字符串
	 * @return
	 */
	public String[] getKeyWords(){
		
		String[] ret=null;
		if(this.getKeyword()!=null && !this.getKeyword().equals("")){
			ret = this.getKeyword().split(",");
			
		}
		return ret;
		
	}
	

	public List<HomeSiteNews> getCommendHomeSiteNewsList() {
		return commendHomeSiteNewsList;
	}

	public void setCommendHomeSiteNewsList(
			List<HomeSiteNews> commendHomeSiteNewsList) {
		this.commendHomeSiteNewsList = commendHomeSiteNewsList;
	}

	public List<HomeSiteNews> getInterrelatedHomeSiteNewsList() {
		return interrelatedHomeSiteNewsList;
	}

	public void setInterrelatedHomeSiteNewsList(
			List<HomeSiteNews> interrelatedHomeSiteNewsList) {
		this.interrelatedHomeSiteNewsList = interrelatedHomeSiteNewsList;
	}

	public List<HomeSiteNewsClass> getNavList() {
		return navList;
	}

	public void setNavList(List<HomeSiteNewsClass> navList) {
		this.navList = navList;
	}
	
	
	
}
